package com.fanxuankai.boot.monitor.confluent;

import com.fanxuankai.boot.monitor.BaseMonitorProperties;
import com.fanxuankai.boot.monitor.Monitor;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;

/**
 * @author fanxuankai
 */
@EnableConfigurationProperties({ConfluentConnectorProperties.class})
@ConditionalOnProperty(ConfluentConnectorProperties.PREFIX + "." + BaseMonitorProperties.ENABLED)
public class ConfluentConnectorAutoConfiguration {
    @Bean
    public Monitor confluentConnectorMonitor() {
        return new ConfluentConnectorMonitor();
    }
}
